package java8_24.oop.Test_2;

public class Teacher {
    private String name;
    private int age;
    private  int teachAge;
    private String sex;

   /* public Teacher() {

    }*/
    public Teacher(String name, int age, int teachAge, String sex) {
        this.name = name;
        this.age = age;
        this.teachAge = teachAge;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getTeachAge() {
        return teachAge;
    }

    public void setTeachAge(int teachAge) {
        this.teachAge = teachAge;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public void  introduce(){
        System.out.println(name+"开始自我介绍");
    }
    public void  goClass(){
        System.out.println(name+"会上课");
    }
    public void  show(){
        System.out.println(name+"今年"+age+"岁，有"+teachAge+"年教龄，性别"+sex);
    }
}
